package com.imut.hcdp.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class HcdpAddTrainRouteParam {

    /**
     * 修改参数
     */
    private Long routeId;

    /**
     * 列车编号
     */
    private Long trainId;

    /**
     * 始发城市
     */
    private String scity;

    /**
     * 终点城市
     */
    private String ecity;

    /**
     * 始发站
     */
    private String sstation;

    /**
     * 终点站
     */
    private String estation;

    //发车时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date stime;
    //到达时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date etime;

    //创建人编号
    private Long crtUser;

    //详情
    private List<HcdpTrainRouteDetailParam> routeDetailList;
}
